import request from '/@/utils/request';
// 列表
export const adminList = (data: object) => {
    return request({
        method: 'post',
        url: "/auth/admin/index", // url
        data: data
    });
}
// 新增/编辑
export const newadd = (data: object) => {
    return request({
        method: 'post',
        url: "/auth/admin/add", // url
        data: data
    });
}
// 删除
export const deleteAdmin = (data: object) => {
    return request({
        method: 'post',
        url: "/auth/admin/del", // url
        data: data
    });
}
// 图片上传
export const uploadImg = (data: object) => {
    return request({
        method: "post",
        url: "/api/common/upload",
        data: data,
    });
};